<template>
  <div>
    <el-card  shadow='false' class="box-card">
      <div slot="header" class="clearfix">
        <el-button type="primary">添加</el-button>
      </div>
      <div class="text item">
        <el-table :data="tableData" border style="width: 100%">
          <el-table-column align="center" type="index" label="序号" width="50">
          </el-table-column>
          <el-table-column
            align="center"
            prop="username"
            label="用户名"
          ></el-table-column>
          <el-table-column align="center" prop="name" label="头像">
          </el-table-column>
          <el-table-column align="center" prop="nickname" label="昵称">
          </el-table-column>
          <el-table-column align="center" prop="realname" label="真实姓名">
          </el-table-column>
          <el-table-column align="center" prop="" label="性别">
          </el-table-column>
          <el-table-column align="center" prop="phone" label="电话">
          </el-table-column>
          <el-table-column align="center" prop="email" label="邮箱">
          </el-table-column>
          <el-table-column align="center" prop="birthday" label="生日">
          </el-table-column>
          <el-table-column align="center" prop="" label="操作">
            <template slot-scope="scope">
              <el-button @click="edit(scope)" type="primary">修改</el-button>
              <el-button @click="del(scope)" type="danger">删除</el-button>
            </template>
          </el-table-column>
        </el-table>
      </div>
    </el-card>
  </div>
</template>

<script>
import adApi from "@/api/marketing/Advertise/index";
export default {
  components: {},

  data() {
    return {
      tableData: [],
    };
  },

  created() {
    this.init();
  },

  mounted() {},

  methods: {
    // 获取广告列表
    init() {
      adApi.adsList().then((res) => {
        console.log(res);
      });
    },
  },

  computed: {},

  watch: {},
};
</script>

<style scoped lang='scss'>
.box-card {
  width: 97%;
  margin: 15px auto;
}
</style>